package lk.icta.common;

/**
 * @author Mahesha Kalpanie
 */

import java.util.Arrays;
import java.util.List;

import org.alfresco.webservice.types.Store;
import org.alfresco.webservice.util.Constants;

public class AlfrescoConstant {

    public static final String ROOT_URL = "LandMIS";

    /*public static final String SERVER_URL = new StringBuilder("http://")
             .append(AlfrescoCrendentialInfo.getServerIP()).append(":")
             .append(AlfrescoCrendentialInfo.getServerPort())
             .append("/alfresco/").toString();  */

    public static final String SERVER_URL = "http://192.168.2.243:8080/alfresco/api";

    /*public static final String USER_NAME = AlfrescoCrendentialInfo.getUserName();
     public static final String PASSWORD = AlfrescoCrendentialInfo.getPassword();
     public static final String ROOT_SPACE_NAME = AlfrescoCrendentialInfo
             .getRootUrl();  */

    public static final String USER_NAME = "admin";
    public static final String PASSWORD = "admin";
    public static final String ROOT_SPACE_NAME = "eLand";

    public static final String API = "api";
    public static final String COMPANY_HOME_LUCENE_PATH = "/app:company_home";

    public static final Store STORE = new Store(Constants.WORKSPACE_STORE,
            "SpacesStore");
    public static final String ALFRESCO_METADATA_PREFIX = "cm:";
    public static final String DUMMY_ID = "1";
    public static final String UTF_8 = "UTF-8";

    public static final String PREFIX_YEAR = "Y_";
    public static final String PREFIX_TENDER = "T_";

    public static final String ALFRESCO_PROPERTIES_FILE = "alfresco";
    public static final String WS_URL_FILE = "webservice";

    public static final List<String> DOC_TYPE_LIST = Arrays
            .asList("application/pdf",
                    "application/msword",
                    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                    "application/vnd.oasis.opendocument.spreadsheet", "application/vnd.oasis.opendocument.formula",
                    "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");

}
